package com.yoo.ons.base

import io.reactivex.disposables.Disposable

abstract class HttpRequestListener<T> {


    abstract fun addRequestParams(
        params: HashMap<String, Any>
    )
    /**
     * @param dynamicsHeadParamMap adding dynamic request header parameters
     */
    open fun addDynamicsHeadParams(dynamicsHeadParamMap: HashMap<String, Any>){}
    abstract fun success(t: T?)
    fun startRequest(disposable: Disposable) {}
    open fun error(throwable: Throwable) {}
    open fun endRequest() {}
}